// Copyright (c) 2021 Presto Labs Pte. Ltd.
// Author: daniel

#pragma once

#include <memory>
#include <string>

#include "coin2/exchange/base/order/order.h"
#include "coin2/exchange/lmax_digital/api_order/native_private_client.h"

namespace coin2::exchange::lmax_digital::api_order {

class LmaxdigitalRestAsyncAsioSubscriber : public base::order::RestSubscriber {
 public:
  using RestClient = LmaxdigitalNativePrivateClient;

 public:
  using RestSubscriber::RestSubscriber;

  auto rest_client() { return dynamic_cast<RestClient*>(rest_client_); }
  void QueryAuthToken();
  void QueryBalance();
  void QueryOpenOrders();
  void SubscribeAsync() override;
};

}  // namespace coin2::exchange::lmax_digital::api_order
